package com.mongo.demo.model;

import lombok.*;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.MongoId;

import java.util.List;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Builder
@Document("invoice_risk_document")
public class InvoiceRiskDocument {

    @MongoId
    private String id;

    @Indexed(unique = true)
    private String entName;

    private String entCreditCode;

    private List<ThirdPartyInvoiceInfo> invoiceInfos;

    private Map<String,Object> invoiceIndicators;

}
